package org.springblade.application.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.util.HashMap;
import java.util.Map;

/**
 * @author dengzhongtao
 * @date 2022-01-21
 */
@Component
public class ConfigInfoUtil {

	@Value("${mydata.address}")
	public String address;

	public Map<String,Object> getInfo(){
		Map<String,Object> map = new HashMap<>();
		map.put("address",this.address);
		return map;
	}


}
